* {
  margin: 0;
  padding: 0;
  user-select: none;
}

html {
  width: 100%;
  height: 100%;
  background-image: url('./img/background.png');
  background-size: cover;
}

body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

#root {
  width: 100%;
  height: 100%;
  text-align: center;
}

#App {
  width: 100%;
  height: 100%;
  overflow: hidden;
}


/* 画笔工具栏相关属性 */
#tools {
  margin: 0;
  width: 100%;
  height: 10%;
  min-height: 80px;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

#close {
  border: 1px solid red;
  border-radius: 10%;
  color: red;
  width: 100px;
  height: 50px;
  position: absolute;
  right: 10px;
}

#close:hover {
  color: rgb(245, 91, 91);
  border: 1px solid rgb(245, 91, 91);
}

#time {
  font-size: 30px;
}

#addPaint {
  width: 60px;
  height: 60px;
  border-radius: 10%;
  background-image: none;
  position: absolute;
  right: 150px;
  background-image: url('./img/add.png');
  border: 2px solid black;
}

#addPaint:hover {
  opacity: 0.5;
}

.paintStyle {
  width: 32%;
  padding: 32% 0 0;
  border-radius: 5px;
  background-size: cover;
  transition: all .4s ease;
  margin: 9%;
  float: left;
  opacity: 0.8;
}

#penSelector {
  background-image: url('./img/pen.png');
}

#colorSelector {
  background-image: url('./img/selectColor.png');
}

#sizeSelector {
  background-image: url('./img/selectSize.png');
}

#triangleSelector {
  background-image: url('./img/triangle.png');
}

#circleSelector {
  background-image: url('./img/circle.png');
}

#rectangleSelector {
  background-image: url('./img/rectangle.png');
}

#fillTriangleSelector {
  background-image: url('./img/fillTriangle.png');
}

#fillRectangleSelector {
  background-image: url('./img/fillRectangle.png');
}

#fillCircleSelector {
  background-image: url('./img/fillCircle.png');
}

#textSelector {
  background-image: url('./img/selectText.png');
}

#fillTextSelector {
  background-image: url('./img/fillText.png');
}

.paintStyle:hover {
  box-shadow: 0px 0px 20px rgb(255, 255, 255);
}

#text {
  background-color: rgba(255, 255, 255, 0.5);
  display: inline-block;
  width: 80%;
}

.noShow {
  opacity: 0;
  position: absolute;
}


/* 画布相关属性 */
#paint {
  width: 70%;
  height: 80%;
  min-width: 800px;
  min-height: 600px;
  margin-top: 2%;
  border-radius: 5%;
  border: 1px solid rgb(104, 104, 104);
  box-shadow: 5px 5px 5px rgb(104, 104, 104);
  background-color: white;
  display: inline-block;
}

/* 画笔设置属性 */
#Pen {
  width: 10%;
  min-width: 100px;
  height: 100%;
  background-color: rgb(255, 255, 255, 0.8);
  background-size: cover;
  float: left;
  position: relative;
  transition: all 1s ease;
}

#toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: black;
  position: absolute;
  right: -30px;
  top: 50%;
  transform-origin: center;
  background-image: url('./img/toggle.png');
  background-size: cover;
  transition: all 1s ease;
}

#toggle:hover {
  transform: rotate(180deg);
}

/* 其他画布样式 */
#otherPaints {
  width: 15%;
  height: 70%;
  float: right;
  position: relative;
  transform: translate(20%, 10%);
  overflow: scroll;
}

#otherPaints::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

#otherPaints .otherPaint {
  width: 75%;
  height: 20%;
  margin-top: 10px;
  background-color: rgba(255, 255, 255);
  border: 1px solid black;
  margin-bottom: -25%;
  transform: translate(40%, 10px);
  border-radius: 5%;
  transition: all 1s ease;
}

#otherPaints .otherPaint:hover {
  box-shadow: -5px -5px 10px rgb(155, 225, 117);
  transform: translate(10%, 0)
}